//
//  stage.mm
//  iXorsPattern
//
//  Created by Dmitry Tatarinov on 1/30/15.
//  Copyright (c) 2015 Huly-Gun Soft. All rights reserved.
//

#import "stage.h"

Stage * Stage::_active = NULL;

void Stage::MakeActive()
{
	if(_active != NULL)
	{
		_active->Unload();
		delete _active;
	}
	_active = this;
}

Stage * Stage::GetActive()
{
	return _active;
}

void Stage::UnloadActive()
{
	if(_active != NULL)
	{
		_active->Unload();
		delete _active;
	}
	_active = NULL;
}

Stage::~Stage()
{
    _active = NULL;
}